package com.jeeplus.test.jlnu.changeStuInfo.domain.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import java.util.Date;
import java.util.List;

@Data
@Accessors(chain = true)
public class ChangeStuInfoHistory {
    private static final long serialVersionUID =  5110827514725283918L;

    /**
     * 自增主键ID
     */
    @Id
    @Column(name = "id" )
    private Long id;

    @Column(name = "info_id" )
    private Long infoId;

    @Column(name = "field" )
    private String field;

    @Column(name = "field_name" )
    private String fieldName;

    @Column(name = "data_history" )
    private String dataHistory;

    @Column(name = "data_change" )
    private String dataChange;

    private Date changeDate;

    private Integer approveState;

    private String studentId;

    private String officeId;

    private String approveRemark;

    @Data
    public static  class GroupedChangeHistory {
        private Date changeDate;
        private List<ChangeStuInfoHistory> items;
    }

}
